package video;

import net.cl.tools.json.JsonObject;

public class Ku6 {

	private static final String INDEX_PREFIX = "http://v.ku6.com/fetchVideo4Player/";

	public String getVideoSource(String videoKey) {
		String indexUrl = INDEX_PREFIX + videoKey + ".html";
		JsonObject js = JsonObject.connect(indexUrl);
		return js.getJsonObject("data").getString("f");
	}

	public static void main(String[] args) {
		Ku6 k = new Ku6();
		System.out.println(k.getVideoSource("Zxak8MuDPh7WaaIH"));
	}

}
